<template>
  <div>
    <h3>父组件</h3>
    <button @click="doClick">绑定事件</button>
    <son @doClick="doClick" />
  </div>
</template>

<script>
import son from './son.vue'
export default {
  components: { son },
  methods: {
    doClick() {
      alert('CocaCola')
    }
  }
}
</script>

<style>

</style>
